<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/11/21
 * Time: 14:31
 */

namespace App\Model;
use DB;
class Article
{

    public function getTop($num = 10)
    {
        return DB::table('article')->get($num);

    }
}